package marek.barak.classes;

import de.bea.domingo.groupware.Email;
import de.bea.domingo.groupware.Groupware;
import de.bea.domingo.groupware.GroupwareException;
import de.bea.domingo.groupware.Mailbox;

public class SendMail {
	Groupware groupware;
	Mailbox mailbox;
	Email email;
	public SendMail() throws GroupwareException{
	groupware = new Groupware("notes:///local!!mail/kriede.nsf");
	 mailbox= groupware.getMailbox();
	}
	 
	public void send(String body){
		
	email= new Email();
	email.setSubject("Measurements");
	email.setRecipient("marek.barak@sk.ibm.com");
	email.setBody(body);
	mailbox.send(email);
	}
	
}
